package com.example.module.goods.form;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

/**
 * @author ghy
 * @date 2025/08/08
 * @description 商品删除表单
 */
@Data
@Validated
public class GoodsDeleteByIdForm {
    /**
     * 商品类型ID
     */
    @NotBlank(message = "商品ID不能为空")
    private Long goodsId;

    /*
     * Getter and Setter
     * */

    public @NotBlank(message = "商品ID不能为空") Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(@NotBlank(message = "商品ID不能为空") Long goodsId) {
        this.goodsId = goodsId;
    }
}
